package cn.edu.scau.cmi.houzhicong.combinationPattern.consistentPattern;

import java.util.List;

public class ConsistentPerson extends ConsistentComponent {
	
	
	public ConsistentPerson(String name) {
		super(name);
	}

	@Override
	public boolean addChild(ConsistentComponent child) {
		return false;
	}

	@Override
	public boolean removeChild(ConsistentComponent child) {
		return false;
	}

	@Override
	public List<ConsistentComponent> getChildren() {
		return null;
	}

	@Override
	public String showChildren() {
		return null;
	}

	@Override
	public String display() {
		return String.format("This is a person named %s.", name);
	}
	
}
